﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.DAO;
using Project.DBMAPPING;
using Project.DTO;
using Project.IBIZ;
using Project.IDAO;

namespace Project.BIZ
{
    public class ProductAddBIZ:IProductAddBIZ
    {
        /// <summary>
        /// Global instance of ProductListDAO
        /// </summary>
        readonly IProductAddDAO _productAddDao = new ProductAddDAO();

        /// <summary>
        /// Add Product
        /// </summary>
        /// <param name="product"></param>
        public void AddProduct(Product product)
        {
            _productAddDao.AddProduct(product);
        }

        /// <summary>
        /// Load Category
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SP_CATEGORY_LOADCATEGORYLISTResult> LoadCategory()
        {
            return _productAddDao.LoadCategory();
        }

        /// <summary>
        /// Load Country
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SP_CONSTANTS_LOADCOUNTRYResult> LoadCountry()
        {
            return _productAddDao.LoadCountry();
        }
    }
}
